package net.zjitc.demo;

import net.zjitc.service.Impl.UserServiceImpl;
import net.zjitc.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserController {
    public static void main(String[] args){
        ApplicationContext app = new ClassPathXmlApplicationContext("springContext.xml");
        UserService userService = (UserService)app.getBean("userService");
        userService.save();
    }
}
